package com.hdoit.apollo.logical.inventory.dao.impl;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.hdoit.apollo.logical.inventory.dao.IInventoryDao;
import com.hdoit.apollo.logical.inventory.mapper.InventoryMapper;
import com.hdoit.apollo.logical.inventory.model.Adjustment;
import com.hdoit.apollo.logical.inventory.model.Inventory;
import com.hdoit.apollo.logical.viewmodel.stock.InventorySearch;
import com.tennetcn.data.dao.base.impl.SuperDao;
import com.tennetcn.data.message.PagerModel;
/**
 * @author      tancongzhu
 * @email       
 * @createtime  2018年04月02日 14:44:19
 * @comment
 */
@Component
public class InventoryDaoImpl extends SuperDao<Inventory> implements IInventoryDao{
	@Autowired
	private InventoryMapper inventoryMapper;
	@Override
	public Inventory queryModelById(String key) {
		return inventoryMapper.queryModelById(key);
	}
	@Override
	public Adjustment queryAdjustmentById(String key) {
		return inventoryMapper.queryAdjustmentById(key);
	}
	@Override
	public List<Inventory> queryListList(InventorySearch search, PagerModel pagerModel) {
		return inventoryMapper.queryListList(search,pagerModel);
	}
	@Override
	public int queryCountList(InventorySearch search) {
		return inventoryMapper.queryCountList(search);
	}

}
